<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue.min.js"></script>
    <script src="../../js/iview.min.js"></script>
    <link rel="stylesheet" href="../../css/iview.css">
</head>
<body>
<div id="app">
    <input type="text" v-model="parentMessage">
    <my-component message="parentMessage"></my-component>
</div>
<script>
    Vue.component('my-component', {
        props: ['message'],
        template: "<div>{{message}}</div>"
    });
    var app = new Vue({
        el: "#app",
        data: {
            parentMessage: ""
        }
    })
</script>
</body>
</html>